/*************************************************************************
	> File Name: add.c
	> Author: 
	> Mail: 
	> Created Time: 
 ************************************************************************/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int max(int a, int b) {
    return a > b ? a : b;
}

void add(const char *num1, const char *num2, int *ans) {
    int len1 = strlen(num1);
    int len2 = strlen(num2);
    ans[0] = max(len1, len2);
    for (int i = len1 - 1, j = len2 - 1, k = 1; i >= 0 || j >= 0; i--, j--, k++) {
        ans[k] += (i >= 0 ? num1[i] - '0': 0);
        ans[k] += (j >= 0 ? num2[j] - '0': 0);
    }
    for (int i = 1; i <= ans[0]; i++) {
        if (ans[i] < 10) continue;
        ans[i + 1] += ans[i] / 10;
        ans[i] %= 10;
        ans[0] += (i == ans[0]);
    }
    return ;
}

void output(int *arr) {
    for (int i = arr[0]; i > 0; i--) {
        printf("%d", arr[i]);
    }
    printf("\n");
    return ;
}

int main() {
    char num1[100] = {0}, num2[100] = {0};
    scanf("%s%s", num1, num2);
    int *ans = (int *)calloc(200, sizeof(int));
    add(num1, num2, ans);
    output(ans);
    free(ans);
    return 0;
}
